//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
//
// (C) Copyright 2006 Marvell International Ltd.
// All Rights Reserved
//
//------------------------------------------------------------------------------
//
//  File:  bsp_cfg.h
//
//  This file contains system constant specific for the Littleton board.
//
#ifndef __BSP_CFG_H
#define __BSP_CFG_H

//------------------------------------------------------------------------------
//
//  Define:  BSP_DEVICE_PREFIX
//
//  Prefix used to generate device name for bootload/KITL
//
#define BSP_DEVICE_PREFIX       "LITTLETON"      // Device name prefix

//------------------------------------------------------------------------------
// Board clock
//------------------------------------------------------------------------------

#ifdef PMU_TICKS_ENABLED
// PMU Timer is used for the system tick timer.  Use the 3.25MHz clock.
//
#define OEM_CLOCK_FREQ          104000000        // 104M ticks/sec
// #define OEM_TICKS_1MS           3250           // 1ms in ticks
 #define OEM_TICKS_1MS          104000           // 1ms in ticks
#else
// OSCR0 is used for the system tick timer.  Use the 3.25MHz clock.
//
 #define OEM_CLOCK_FREQ          3250000        // 3.25M ticks/sec
 #define OEM_TICKS_1MS           3250           // 1ms in ticks
// #define OEM_TICKS_1MS           3680           // 1ms in ticks
#endif

#define RESCHED_PERIOD          1              // Reschedule period in ms
#define RESCHED_INCREMENT       (RESCHED_PERIOD * OEM_TICKS_1MS)    // Reschedule
                                               // period in ticks
#define OEM_TICK_COUNT_MARGIN   400

//------------------------------------------------------------------------------
// Static SYSINTR Mapping for driver.
#define SYSINTR_OHCI            (SYSINTR_FIRMWARE+1)  // 17
#define SYSINTR_TOUCH           (SYSINTR_FIRMWARE+2)  // 18
#define SYSINTR_TOUCH_CHANGED   (SYSINTR_FIRMWARE+3)  // 19
#define SYSINTR_USBFN           (SYSINTR_FIRMWARE+10) // 26
#define SYSINTR_FFUART			(SYSINTR_FIRMWARE+13) // 29
#define SYSINTR_SMSC91C111       (SYSINTR_FIRMWARE+20) // 36
#define SYSINTR_SSP3                   (SYSINTR_FIRMWARE+21) // 37
#define SYSINTR_SSP4                   (SYSINTR_FIRMWARE+22) // 38


//#define SYSINTR_PWRBUTTON	 (SYSINTR_FIRMWARE+21) // 37

//------------------------------------------------------------------------------

#endif
